<template>
    <div class="self">
        <div class="py-container">
            <div class="title">
                <h3 class="fl">轻聊自测</h3>
                <a href="javascript:;" class="fr tip changeBnt">换一换</a>
            </div>
            <div class="bd">
                <ul class="self-test">
                    <li>
                        <a href="https://m.xinli001.com/ceshi/263?source=pc-home">
                            <img src="./images/self01.png" title="你身怀那种绝世武功秘籍" alt=""/>
                            <button>去测试</button>
                        </a>
                    </li>
                    <li>
                        <a href="https://m.xinli001.com/ceshi/263?source=pc-home">
                            <img src="./images/self02.png" title="你有哪种强迫症" alt=""/>
                            <button>去测试</button>
                        </a>
                    </li>
                    <li>
                        <a href="https://m.xinli001.com/ceshi/263?source=pc-home">
                            <img src="./images/self03.png" title="气质类型测试" alt=""/>
                            <button>去测试</button>
                        </a>
                    </li>
                    <li>
                        <a href="https://accounts.google.com/b/0/AddMailService">
                            <img src="./images/self04.png" title="测测你的爱情观有多成熟" alt=""/>
                            <button>去测试</button>
                        </a>
                    </li>
                    <li>
                        <a href="https://m.xinli001.com/ceping/397?channelId=513&autoBuy=1">
                            <img src="./images/self02.png" title="心理敏感度测试" alt=""/>
                            <button>去测试</button>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Self"
    }
</script>

<style lang="less" scoped>
    .self {
        margin-top: 15px;

        .py-container {
            width: 1200px;
            margin: 0 auto;

            .title {
                overflow: hidden;

                .fl {
                    float: left;
                    font-size: 20px;
                    line-height: 30px;
                }

                .fr {
                    float: right;
                    background-image: url(./images/icons.png);
                    width: 66px;
                    height: 25px;
                    background-position: 182px -104px;
                    line-height: 30px;
                    font-size: 12px;
                    font-weight: 400;
                    color: #8b4f4f;
                    text-decoration: none;
                }
            }

            .bd {
                .self-test {
                    border: 1px solid #e4e4e4;
                    overflow: hidden;
                    padding: 0 10px;
                    box-sizing: border-box;
                    display:flex;

                    li {
                        height: 250px;
                        margin: 0 -1px;
                        overflow: hidden;
                        background: #fff;
                        width: 20%;
                        position: relative;
                        display: flex;
                        justify-content: space-evenly;
                        align-items: center;
                          a{
                              img {
                                  width: 175px;
                                  height: 175px;
                                  border-radius: 10px;
                                  box-shadow: #d5eeee;
                                  transition: all 400ms;

                                  &:hover {
                                      opacity: 0.8;
                                      transform: scale(1.1)
                                  }
                              }
                              button{
                                  display: block;
                                  padding: 5px 12px;
                                  font-size:14px;
                                  margin: 0 auto;
                                  text-align: center;
                                  color: #0e0c26;
                                  background-color: #f7fdd6;
                                  border: none;
                                  border-radius: 15px;
                                  box-shadow: 0 5px #cecdb6;
                                  &:hover {
                                      opacity: 0.6;
                                      transform: scale(1.1)
                                  }
                              }

                          }
                    }
                }
            }
        }
    }
</style>